//
//  FormPageView.swift
//  SwiftUIDemo
//
//  Created by Kael on 2020/8/19.
//  Copyright © 2020 Kael. All rights reserved.
//

import SwiftUI

struct FormPageView: View {
    var body: some View {
        VStack {
            Text("Form 组件")
            HStack{
                Button(action: {}, label: {
                    Text("Clasic")
                })
                Button(action: {}, label: {
                    Text("Clasic")
                })
                Button(action: {}, label: {
                    Text("Clasic")
                })
            }
            Form(content: {

                Section{
                    Text("Section 0 Row 1")
                    Text("Section 0 Row 1")
                    Text("Section 0 Row 1")
                }
                
                Section{
                    Text("Section 1 Row 1")
                    Text("Section 1 Row 1")
                    Text("Section 1 Row 1")
                }
            })
        }
    }
}

struct FormPageView_Previews: PreviewProvider {
    static var previews: some View {
        FormPageView()
    }
}
